
#ifndef  __PICK_HANDLER_H
#define  __PICK_HANDLER_H


#include <osgViewer/Viewer>
#include <osgGA/GUIEventHandler>

class CPickHandler:public osgGA::GUIEventHandler
{
public:
    CPickHandler()
	: m_strPickNodePath( "" )
	{
	}

	~CPickHandler()
	{
	}

    virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &&aa);
    void pick( osgViewer::View* view, float x, float y );

private:
	std::string	m_strPickNodePath;
};


#endif		//__PICK_HANDLER_H